@import './common.scss';
@import '@/styles/common/variables.scss';

@import './phone_list.scss';
.main .minwidth.productList{
  min-height: 400px;
  margin-top: 56px;
  .el-collapse{
    position: fixed;
    top: 32 + $menuHeight;
    border: none;
  }
  .phoneShow{
    display: none;
  }
  .el-collapse-item{
    width: 192px;
    // height: 56px;
    .el-collapse-item__header{
      height: 56px;
      padding-left: 16px;
      border: none;
      font-size: 14px;
      color: #373737;
      &.is-active{
        font-weight: bold;
        color: #363434;

      }
    }
    .el-collapse-item__wrap{
      border: none;
    }
    .el-collapse-item__content{
      padding-bottom: 0;
      border: none;
    }
    .productGuide{
      height: 56px;
      padding-left: 33px;
      line-height: 56px;
      color: #373737;
      font-size: 14px;
      cursor: pointer;
      &.is-active{
        font-weight: bold;
        color: #363434;
      }
      &:hover{
        font-weight: bold;
        color: #363434;
      }
    }
  }

  .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 16px 0;
    >p:first-of-type{
      color: #373737;
      font-size: 16px;
      font-weight: bold;
    }
    .commentSelect{
      margin: 0;
      padding: 0;
      .el-select{
        .el-input
        .el-input__inner{
          border:none;
          padding-left: 0;
          min-width: 122px;
          color: #363434;
          text-align: right;
        }
      }
    }
  }

  .productListShow{
    position: relative;
    left: calc(20.7% + 20px);
    width: calc(79.3% - 20px);
  }

  .menuShow{
    position: fixed;
    top: 32 + $menuHeight;
    // min-width: 240px;
    width: 18.1%;
    height: auto;
    .el-menu{
      border: none;
      >.el-submenu {
        >.el-submenu__title{
          padding-left: 0 !important;
        }
        >.el-menu{ // 二级菜单那
          >.el-submenu {
            >.el-submenu__title{
              padding-left: 16px !important;
            }
          }
        }
      }
      .el-submenu__title,
      li.el-menu-item{
        border-bottom: 1px solid #F2F1F0;
      }
      .el-submenu__title{
        color: #7e7e7e;
        font-size: 14px;
       
        &:hover{
          background-color: #ffffff;
          color: #363434;
        }
      }
      .el-menu-item-group__title{
        display: none;
      }
      .el-submenu .el-menu-item{
        min-width: auto;
        padding-left: 32px !important;
        color: #363434;
        font-size: 14px;
    
        &:hover{
          background-color: #ffffff;
          color: #363434;
          font-weight: bold;
        }
        &:focus{
          background-color: #ffffff;
        }
        
      }
      .el-submenu {
       
        &.is-active{
          background-color: #ffffff;
          color: #363434;
          .el-menu-item{
            color: #363434;
            font-weight: normal;
            &.is-active {
              background-color: #ffffff;
              color: #363434;
              font-weight: bold;
            }
          }
        }
        &.menuActive{
          >.el-submenu__title{
            background-color: #ffffff;
            color: #363434;
          }
        }
      }
    }
    .exportImport{
      background-color: #ffffff;
      padding: 0 8px 0 16px;
      .input_container{
        padding-top: 10px;
      }
      .output_container{
        padding-top: 8px;
      }
      .output_container, .input_container{
        >p{
          font-weight: normal;
        }
        >div{
          max-width: 88px;
          height: 88px;
          margin-right: 16px;
          margin-bottom: 16px;
          width: calc(33.3% - 11px);
          padding: 11px 0;
          &:nth-of-type(3n){
            margin-right: 0;
          }
        }
      }
      @include respond('1440'){
        .output_container, .input_container{
          >div{
            width: 88px;
            &:nth-of-type(3n){
              margin-right: 16px;
            }
          }
        }
      }
    
    }
  }
  &.noTypeFixed{ //左侧菜单不固定的情况
    display: flex;
    padding-bottom: 64px;
    .menuShow{
      position: relative;
      margin-top: 32px;
      height: 100%;
      top: 0;
      width: calc(20%);
      margin-right: 20px;
    }
    .productListShow{
      margin-left: 15px;
      min-width: 728px;
      left: 0;
      width: calc(80% - 20px);
    }

  }
}

// 左侧菜单 图标+-
.main .productList  .menuShow {
  .el-submenu__icon-arrow.el-icon-arrow-down{
    color: #363434;
    right: 0;
    font-family: 'iconfont' !important;
    font-size: 14px;
    &::before{
      content: '\e8e5';
    }
  }
  >.el-menu{
    >.el-submenu{
      &.is-opened{
        >.el-submenu__title{
          >.el-submenu__icon-arrow.el-icon-arrow-down{
            color: #363434;
            &::before{
              content: '\e8e4';
            }
          }
        }
        >.el-menu{
          >.el-submenu{
            >.el-submenu__title{
              color: #363434;
            }
          }
        }


      }
    }
  }
  .el-menu{
    >.menuItem{
      >.el-submenu{
        &.is-opened{
          .el-submenu__icon-arrow.el-icon-arrow-down{
            color: #363434;
            &::before{
              content: '\e8e4';
            }
          }
        }
      }
    }
    >.el-submenu{
      &.is-opened{
        >.el-submenu__title{
          >.el-submenu__icon-arrow.el-icon-arrow-down{
            color: #363434;
            &::before{
              content: '\e8e4';
            }
          }
        }

      }
    }
  }

}

.productListSelect{
  .el-select-dropdown__item{
    color: #7e7e7e;
    &.selected{
      font-weight: normal;
      color: #363434;
    }
    &:hover{
      color: #363434;
    }
    &:hover,
    &.hover{
      background-color: #ffffff;
    }
  } 

}



